#ifndef __CW_DATAPROCESS_H_
#define __CW_DATAPROCESS_H_
#include "includes.h"

short shortabs(short Num);
int intabs(int Num);
float floatabs(float Num);
long longabs(long Num);
double doubleabs(double Num);

int sgn(int Num);
int longsgn(long num);
int doublesgn(double num);

double doublemin(double x,double y);
double doublemax(double x,double y);

int intmin(int x,int y);
int intmax(int x,int y);

//数值解析函数，传入初始位置和结束符，获取数值,并且获得分号的位置
int Numerical_analysis(uint8_t *NumStartIndex,char endchar,uint8_t **header);
//浮点数值解析函数，传入初始位置和结束符，获取数值,并且获得分号的位置
float FloatNum_analysis(uint8_t *NumStartIndex,char endchar,uint8_t **header);

#endif
